			<?php echo CHtml::beginForm(Yii::app()->createUrl('search'),'post',array('class'=>'sidebarSearch'));?>
				   <?php $label = $asearchfrom->attributeLabels();?>
                   <?php echo CHtml::activeTextField($asearchfrom, 'search',array('placeholder'=>$label['search'],'id'=>'ac'));?>
                   <?php echo CHtml::submitButton('',array('disabled'=>'disabled'))?>
            <?php echo CHtml::endForm();?>
<script>
$(document).ready(function(){
	$('#ac').blur(function(){
		if($(this).val()!="")
			$(this).next().removeAttr('disabled');
		else
			$(this).next().attr('disabled','disabled');
		})
	});
</script>